package com.example.config;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

@Component
//@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE,proxyMode = ScopedProxyMode.TARGET_CLASS)
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class PrototypeDemo {

    public void test(){
        System.out.println("demo:"+this.hashCode()+this.toString());
    }
}
